package com.example.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Table(name = "sys_user")
@Data
@Builder
//无参构造
@NoArgsConstructor
//带全部参数的构造
@AllArgsConstructor
public class SysUser implements Serializable {
   
	private static final long serialVersionUID = 1L;

	@Id
    private String id;

    private String name;

    private String password;

    private Integer age;

    @Column(name = "create_date")
    // @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date createDate;
}